"use client";
import React from "react";
import Watermark from "@uiw/react-watermark";

export const IpdWaterMark = ({children}: {children: React.ReactNode}) => {
  const username = "袁程磊";
  const userid = "yuanchenglei2020";
  const datetime = new Date().toLocaleString();

  return (
    <Watermark
      content={[username, datetime]}
      rotate={-22} // 默认旋转角度-22°
      gapX={200}
      gapY={180}
      height={50}
      fontSize={12}
    >
      {children}
    </Watermark>
  );
};
